<!--  ABM TIPOINFORME -->
<legend id="TipoInforme">
    Tipo Informe
    <a class="btn btn-mini btn-success" href="<?php echo $this->baseUrl("/admin/tablas/tipoinforme") ?>">Nuevo</a>
</legend>
<div class="row-fluid">
    <div class="span8">
        <form class="form-inline" name="tipo_informe" method="post" action="<?php echo $this->baseUrl("/admin/tablas/tipoinforme/") ?>">
            <label>Descripción</label>
            <input type="text" name="tipo_informe_descripcion" value="<?php echo $this->unTipoInforme->getDescripcion() ?>" class="input-large" />
            <label class="checkbox">
            <input type="checkbox" value="true" name="tipo_informe_visible" <?php echo $this->unTipoInforme->getVisible() == 1 ? "checked" : ""; ?> /> Visible
            </label>
            <input type="hidden" value="<?php echo $this->unTipoInforme->getId() ?>" name="id" />
            <?php $btn->accion = "Guardar"; $btn->color = "btn-primary"; ?>
            <?php if ($this->unTipoInforme->getId()) : $btn->accion = "Modificar"; $btn->color = "btn-warning"; endif;  ?>
            <input type="submit" value="<?php echo $btn->accion ?>" class="btn <?php echo $btn->color ?>" />
        </form>
    </div>
</div>
<div class="row-fluid">
    <div class="span8">
        <table class="table table-condensed">
            <thead><tr><th>#</th><th>Descripción</th><th></th></tr></thead>
            <tbody>
                <?php if (count($this->tiposInforme) > 0) : ?>
                <?php foreach ($this->tiposInforme as $tipoInforme) : ?>
                <tr <?php echo $tipoInforme->getVisible() == 1 ? "" : "class='error'"; ?>>
                    <td><?php echo $tipoInforme->getId() ?></td>
                    <td><?php echo $tipoInforme->getDescripcion() ?></td>
                    <td style="width: 100px;">
                        <a class="btn btn-mini btn-primary" href="<?php echo $this->baseUrl("/admin/tablas/tipoinforme/id/". $tipoInforme->getId() ."/#TipoInforme") ?>">Ver</a>
                        <!--<a class="btn btn-mini btn-danger" href="<?php echo $this->baseUrl("/admin/tablas/tipoinforme/accion/eliminar/id/". $tipoInforme->getId() ."/") ?>">Eliminar</a>-->
                    </td>
                </tr>
                <?php endforeach; ?>
                <?php else : ?>
                <tr><td colspan="3">Ningún resultado.</td></tr>
                <?php endif; ?>
            </tbody>
        </table>
    </div>
</div>
<!--  FIN ABM TIPOINFORME  -->
